<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $cfg['site']['base_url'];?>css/style.css" media="screen, projection">
<title><?=$cfg['site']['title']?></title>
</head>
<body onclick="mainApp(event)">
<div id="wrap">
<div id="header" class="clearfix">
<div style="float:left;width:7%;min-width: 86px;" id="logo">
    <a href="<?php echo $cfg['site']['base_url'];?>">
        <span class="logo"><?=$cfg['site']['title']?></span>
        <span class="slog"><?=$cfg['site']['slogan']?></span>
    </a>
</div>
<div style="float:left;width:91%" >
    <div id="nav" class="clearfix" >
    <?php include('menu.php'); ?>
    </div>
</div>
</div>
    <script>
    function mainApp(e)
    {
        var targ;
        var fns = {};
        if(!e) var e = window.event;
        if (e.target) targ = e.target;
	else if (e.srcElement) targ = e.srcElement;
	if (targ.nodeType == 3) targ = targ.parentNode;
        fns.click_pmi = function()
        {
            targ.parentNode.parentNode.childNodes[3].style.display = (targ.parentNode.parentNode.childNodes[3].style.display.toLowerCase() == '' || targ.parentNode.parentNode.childNodes[3].style.display.toLowerCase() == 'block')?'none':'block';
            targ.className  = (targ.className == 'pmi pmim')?'pmi':'pmi pmim';
        }
        if(fns[e.type+'_'+targ.getAttribute('fn')]) fns[e.type+'_'+targ.getAttribute('fn')]();
    }
</script>
<div id="main">
